<div class="page_title">
    <span class="title_icon"><span class="blocks_images"></span></span>
    <h3>Pacientes</h3>    
</div>
<div id="content">
    <div class="grid_container">
        <div class="grid_12">
            <div class="widget_wrap">
                <div class="widget_top">
                    <span class="h_icon blocks_images"></span>
                    <h6>Listado de Usuarios</h6>
                </div>
                <div class="widget_content"> 
                    <div id="post"></div>
                    <?php //echo $this->Ajax->link('View Post', array('controller' => 'Pacientes', 'action' => 'index'), array('update' => 'post'));?>
                    <table class="display data_tbl">
                        <thead>
                            <tr>
                                <th>Nombres</th>
                                <th>Apellido Paterno</th>
                                <th>Apellido Materno</th>                                                                
                                <th>Perfil</th>
                                <th>Usuario</th>
                                <th>Acciones</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach ($users as $u): ?>
                                <tr class="gradeA">
                                    <td><?php echo h($u['User']['nombre']); ?></td>                          
                                    <td><?php echo h($u['User']['apellido_paterno']); ?></td>
                                    <td><?php echo h($u['User']['apellido_materno']); ?></td>
                                    <td><?php echo h($u['Group']['name']); ?></td>
                                    <td><?php echo h($u['User']['username'])?></td>
                                    <td>
                                         <?php echo $this->Html->link($this->Html->image("iconos/edit.png", array("alt" =>'Editar', 'title' => 'editar')), array('action' => 'edit', $u['User']['id']),array('escape' => false)); ?>
                                         <?php echo $this->Html->link($this->Html->image("iconos/configure.png", array("alt" =>'Editar', 'title' => 'Cambio Password')), array('action' => 'cambiopass', $u['User']['id']),array('escape' => false)); ?>
                                         <?php echo $this->Html->link($this->Html->image("iconos/remove.png", array("alt" =>'eliminar', 'title' => 'eliminar')), array('action' => 'delete', $u['User']['id']),array('escape' => false), 
                                                    ("Desea eliminar realmente??")); ?>
                                        <?php //echo $this->Html->link('ELIMINAR', array('action'=>'delete', $u['User']['id']),null,'esta seguro de eliminar '.$u['User']['nombre'].'?')?>
                                        
                                    </td> 

                                </tr>                           
                            <?php endforeach; ?>
                        </tbody>
                        <tfoot>
                            <tr>
                                 <th>Nombres</th>
                                <th>Apellido Paterno</th>
                                <th>Apellido Materno</th>                                                                
                                <th>Perfil</th>
                                <th>Usuario</th>
                                <th>Acciones</th>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>